﻿using DncLite.Domain.Core.Models;
using Microsoft.EntityFrameworkCore;

namespace DncLite.Domain.Models
{
    /// <summary>
    /// 
    /// </summary>
    [Owned]
    public class Address : ValueObject<Address>
    {
        public Address()
        {

        }
        public Address(string province,string city ,string county,string street)
        {
            Province = province;
            City = city;
            County = county;
            Street = street;
        }
        /// <summary>
        /// 省份
        /// </summary>
        public string Province { get; set; }
        /// <summary>
        /// 城市
        /// </summary>
        public string City { get; set; }
        /// <summary>
        /// 区县
        /// </summary>
        public string County { get; set; }
        /// <summary>
        /// 街道
        /// </summary>
        public string Street { get; set; }
        protected override bool EqualsCore(Address other)
        {
            throw new System.NotImplementedException();
        }

        protected override int GetHashCodeCore()
        {
            throw new System.NotImplementedException();
        }
    }
}